package com.tedu.services;

import com.tedu.mapper.SmbmsRoleMapper;
import com.tedu.mapper.SmbmsUserMapper;
import com.tedu.pojo.SmbmsUser;
import com.tedu.pojo.SmbmsUserExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.List;

@Service
public class UserPwdServicesImpl implements UserPwdServices{
    @Autowired
    SmbmsUserMapper userMapper;


    @Override
    public int modifyPwd(SmbmsUser u) {


        //使用mybatis获取数据库的数据
        //设置查询条件
        SmbmsUserExample example = new SmbmsUserExample();
        SmbmsUserExample.Criteria criteria = example.createCriteria();
        //密码相同
        criteria.andUserpasswordEqualTo(u.getUserpassword());

        List<SmbmsUser> smbmsUsers = userMapper.selectByExample(example);



        return 0;
    }

}
